package com.ronghuanet.gift.controller;

import com.ronghuanet.gift.service.ISmsValidateCodeService;
import com.ronghuanet.gift.util.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/sms")
public class SmsValidateCodeController {

    @Autowired
    private ISmsValidateCodeService smsValidateCodeService;
    // 注册验证码
    @GetMapping("/{phone}")
    public AjaxResult sendRegisterCode(@PathVariable("phone")String phone){
        return smsValidateCodeService.sendRegisterCode(phone);
    }


    //登陆验证码 @TODO


    //找回密码验证码 @TODO


    //等等
}
